package com.yywq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yywq.pojo.Address;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: 吴磊
 * @program: yywq
 * @create: 2021-03-20 22:16
 */
@Repository
public interface AddressMapper extends BaseMapper<Address> {

    /**
     * 通过用户id查询地址
     *
     * @param uid
     * @return
     */
    List<Address> getAddressByUid(@Param("uid") String uid);
}
